package com.example.sandbox.mapper;

import com.example.sandbox.dto.domain.TransferOrder;
import com.example.sandbox.service.SuperMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 转账订单表 Mapper 接口
 *
 * @author liuxinxin
 * @since 2024-05-16
 */
@Repository
public interface TransferOrderMapper extends SuperMapper<TransferOrder> {

    /**
     * 根据订单 ID 更新订单状态
     *
     * @param orderId 订单 ID
     * @param state   新的状态值
     */
    int updateByOrderId(@Param("orderId") String orderId, @Param("state") byte state);
}
